Update security and correct assigned categories