fix the enter problem