Fix some relations
Update duration automatically