fix types for clang