fixed bug 1114
fixed bug 1115
format name string