Fixed issue with refreshing the panel