fixes compatibility with new Elixir and also fixes possible typo