fix misnamed relations