Bug fix in sellOrderState.