Fix: escape not able to hide panel