fix erro nested attributes