Correcting bug in comparison scripts