fix some warnings in ErlModel