fix bug when hitting enter instead of button)