Small bug fixes in spanning hypertree function