fixing bugs of angle