Fixed hard to reproduce error with plot_validate_profiles

hopefully...