Fixed: Checking total values before update foreign key in one-to-many
associations.