Fixed a bug that had seeped into the require function.