fixed mBuffer issues with tiled layers