Fix an issue with applying deltas