fixed formatting with %d instead of %s