Codelock: Bug fix

Fixed the disappearing cursor bug