Fixes #101 by using object_id

Thanks to Torsten Rüger (dancinglightning) for reporting this.