fix for erlang 17

I wonder it the change is right, tks.