fixed the enter bug