Fixed bug with require cache