Changed order of attributes setting in Formatter

close #5261