Fixed warnings in erlang code.