fixed a bug in when connected constraint
example for struct and array