fix to category relationship