Fix problem with printf