fix setFrameRate