fixed bug with string format