Fixed setFramesOnOff