Fixed nested attributes issue