Fix for older Erlang version

This will allow it to work for with older Erlang versions.