fix resource dependency