fix sale bug