bugffix in cursor pos after f3 pressed

small bug