Fix too many arguments of sprintf