fix resource config