fix invalid doc
fix more bugs with annotation style dynamic refexes