Fixed a bug where the page wasn't refreshing