Added catches to prevent certain invalid attachment pairs