Fix syntax error for autoloader factory