fixed layer specification bug for getting instances