fixing id of last level