Fixing typo on frameskip function