Fix toggle endpoint