workaround issue where casing diff overflows signed short