Fixing up toSelectArray