bug_1039, fixed format code