fix formate bug