Removing middle item correctly assigns list items