Fixed a bug where reload button was not working