Fix crash when compiled with Clang