Clang complained about type mismatch