Fix resource groups size in C-interface