fixed bug with layerID