Tried to fix a bug in require.