Fix deprecated methods on elixir 0.14.1