correct some warnign and errors on enet exemple