fix a bug that open in 'current' tab will cause the command panel still there.