fixed "enter" bug