avoid duplicate mode changes