fixes require bug