fix relations issue