fix crash on esl-erlang > 17.0