Fixed map duplication - now the container element is cleared right before map initialization, thus preventing race condition