Fixed bug with stop script