fixes issue with fetching associations