Fixed quitting.