Fix bug in creating solved arrays