Fixed bug when hitting enter in console.