fix a bug in market update