fix for addBelongsTo getting from the global object