Fixed nested attribute issue