Corrected minor error in passing existing values in select