Bug fix in BASE.js