Fix angle range error. fixes #38