fix to the 0/0 error real cursor position check