fixing small getID bug