bug fix.
location.reload is a function.