Fixed error in selecting column names