fixed a bug for SRRIP