fix bug in operation builder