fix the bug of format