reimplemented automatic add reference
fix possible bug in ClassBrowserSupport