Fixing auto-require magic