fixed initialize and map.js bug