has_one through has_one does not save association

fixes issue #9336