bug fix for market stuff