Db function targetLayer error on not fount fixed