Fix crash in case of no disparities