fix goof in logical operator