fix some new_from_pledge bugs