fix(goesPrevState): fix issue