Fix integer ID detection