recover index to initial state