Fix crash due to misplaced ID