fixed out of range index bug when deleting from track list