Fixed occasional issues with diff displaying incorrectly.