fix error when market is not found