fix handling of multiple shifts delimited by a single reset