fix for columns array select getting out of bounds