fixed stupid bug with inserting belongs_to records without reference data available