fixing quit command