Fixed lvl_by_color and thus lvl_by_medals