catch layer does not exist error