Fix editing hosts outside of own subnet. Fixes #2