Fixed the crash with stringwithformat