Fixed quitting order.