fix resource dependency.