Fixed closedMarket error