Fix a bug in RSE analysis.