bug fix: sprintf argument was wrong