fix map rendering

thanks @tonydspaniard +1+