Fixed IO loop callback bug; fixed print method bug