fixed cursor positioning