Correctly calculate intermediate and final positions in case of parent being moved while filtering