Fix ifs in autoload