Fixing id issue in resource categories