Fix negative ids