fix resource for distribution