fixed issue with missing HasOne in relationships