cursor problem solved