fix some issues with clang complete