fix 'Use of uninitialized value  in sprintf'