fixing map script