fix map flickering problem when making it small