fixed ctags function