fix sales_engine error & other stuff