fix map rendering issue