fixed a logic issue in sold out