Fixes dialyzer errors for erlang version 17