fix bug in stopandgo