fixes nasty type with plot_types registration check