fixed bug with non-terminating window, when run in terminal