fixed bug with static map