Fix pattern bug in startstop and updown