make the cursor change working in daemon mode