define end_of_association_chain into updates controller [Fix #65336710]
we need to use the lambda for prevent a weird bug :S [Fix #65336710]