fixed typos in the require logic.