Fix a typo that prevented the refresh parameter from working

Thanks again to @glensc for discovering the problem.
Minor return value and comment correction