traceback bug when printing fixed