Fix for diff function because of the improved rendering.