fix easing function bug