Made cursor positions update all at the same time.