minor fix for cursor behavior