fix issue with resource dependency