fixed map rendering bugs