Bug fix: html elements does not recognize after the map dialog is closed.