fixed minor code issues to be compatible with inet 2.4