fixed maps api bug