fix init of erlang engine