Fix formate bug