fixed problem with printf and %s