fix bug to allow use with layerId

jeeeezzzzzz (oops)