fixed bug with exit command