Fix a small issue when enabling by mouse