Fixed bug with require cache

Resolved #1