Bug with a single label for Potts models fixed. Cases of other types of functions have to be checked