[BUG]Struct var doesn't mantain defaults

I think it was fixed by PR 779