Corrected list slicing mistake