Fixed map rendering weirdly.
Optimized panel.