fixed belongs_to not handling non PK relations properly