fixed error when rendering an .map file