Revert "bug fix on panels"

This reverts commit 5e262f6cc2b862a183865d6a4edf6b07243c75f5.