fixed a bug for rmsf plotting