mapWorker.js fix array size bug