Trying to fix delete buffer in place.