Fixed the index redirect bug in store()