Fixed an issue with command window hiding

fixes #286