fixed circular reference bug in model/collection relationship