fix issue with id being double defined in ghost class