I think It’s a bug on InDesign.
other developers mentioned same problem in the past as well.
selecting panels from Plugin panel, it works properly, but selecting from top of the menu, this not correctly works at all.
http://forums.creativeclouddeveloper.com/t/multiple-panels-without-web-components/7588/8