Fixed issue with reload() not working