Fixing require bug