Bad sprintf use fixed

See #2