Fixed memory consumption in diff thingy