Fixing requestFrame issues.