fix bug where related would not update when model changed