Fixed a bug with incorrect string formatting