fixed usage of id