try to fix resource names.