Fixed error in show caused by reimplementing with printf