Fixed all big issues regarding map rendering.