return no mode if max appearance is one, fix error on loading from file