fixed 'require' memoization