solve problem with double ids

Signed-off-by: Karel Kellner <karel@kellner.be>