Fix print methos bug