bugs in restarting services fixed