Fixed a bug with the ID recognition