Fix missing argument with sprintf function