bugfix for nested attributes with their own IDs