fix case with or statement bug