fix bug with tiled map layers metadata event