fix resource attributes