correction on base.js