Fix require() bug