Fixed logical comparison that was accidently an assignment