fixed global require() leak