Fixed bug in term_angle_bend
added some imptor code