fixed bug for clang