Fix for older Erlang version