Fixed the layer rendering of the maps

Signed-off-by: Exikle <xidstudios@hotmail.com>