Fixed bug with require call