fix bug with sell action