fixed bug in functionannotation