Set cursor to null when not used