Fixed bug when using ctrl-enter