addressing map js bug