fixing map glitch