Fixed another issue with the format strings in snprintf