Fix ArgumentError when passing an odd array