fixed cursor issue