Fixing some bugs

If you hit double Ctrl-Q on empty input, it would crash