fix error that can occur with adding subnet