Fix on/off problem.