Fix bug introduced in 76c1ee86
Merge pull request #492 from mhamrle/fix_market

Fix market