fix position cursor