fix animation calculation when using sortable with revert option