try to fix id undefined