fixed typo that caused TypeError when attempting to update numFrames