fix crash on esl-erlang > 17.0
Merge pull request #1 from 0x20c24/master

fix crash on esl-erlang > 17.0