Change -1 index to last