Fixed bug witgh the cursor showing