fixed error in base.js