fixed freeze when hitting enter on an empty command