fixing not updating market bug on edit