Map visibility bug fix