Fixed bug where page wasn't refreshing properly.