Fixed issue with buffer overflow for deltas