lockcursor fix