Fixed a bug causing framerate to not take effect.