Fix to allow for page refreshing.