fixed cursor alignment issue.