Fixed invalid string formatting resulted in misleading stacktrace