Fix market bug