fix(store): synchronize access to CurrentIndex