Fix quit script