Fix RefreshCommand.
Merge pull request #3060 from tmalecki/fix_refresh_command

Fix RefreshCommand.