fix for clang bug