Fixed cursor update func