fixed an issue with panel