fixed formula error for small values of slerp