Fix a bug in the code that merges consecutive stores. Previously we did not