fix for special cases of BILP