fixed wrong type in stringWithFormat
fixed wrong type cast