[QE-1024] Fixing boolean operator