Minor bug fixes

Compilation fails because hasNetwork does not yet exist