fix fmt bugs