I know this part, but believe me, the problem is that the mount reports a by 4h different RA value without slewing. As you could see in the code part you are citing, the log takes the current telescope position when reporting and not the target position.