fix for invalid string formatting