Fix crash when there's no changes