fixed typo which prevented window from reloading