Fixed bug due to angle normalization.