fixed malformed erlang error term