Fixed incorrect sprintf call