fixing bug with index creation when column was added and using real names for parent ids