fixes map rendering issue