bug fix for slerp (close #30)