fix map validation