fix store setting bugs