Type tweak for compatibility with Erlang/OTP 17.0