Fixed condition in Printf appearing twice