[PATCH] Fix parsing of hids and ids