bugfix with the refresh button