Fix bug with nested set when flush Category entity