Fix store initialization for app env