fix plot IDs

This one prevents the creation of 4x `0;0` plots and  other cases where multiple plots had the same ID.

Thanks to @dico200 for helping me to figure this out.