more bugs fixes
change logic in sales