fixed pb with ids