Fixed map rendering

Rener was happening before modal was shown