fix bug when the operator is a list