check for duplicate wm_id added