Fixed a bug with refreshing and the store