Fix assignment being used in place of a comparison