fix for erlang 17 compile error