fix to support USE_RGENGC==0