Bugfix attempt - "frame_rate is not defined"