fix for AND and OR exit status