fix nils in associations