fixed a bug for FGRRIP