Ouch. fixed an assignment in a if statement