Duplicate column bug fixed