Fixed base.js when not on test mode