fixed r8 problem after exiting printf