fixed bugs with do_bio