Fixed major bug with require