fix id selection issue