array.slice() was misused.