Fixed cursor assignment (properly)