Fix Duplicate column error

Please find the code which fix the error of duplicate column error