Fix for properly interpolating between more than 2 keys