Fixes cache for hasOne associations (#339)