resetSequences was being called in the context of window instead of a contextFactory Change-Id: I1b9ee25547bd18d59eac4b991ecc813b81f92a4c