fix format bugs