Issue 184: If the node id is 0, the id mapping is incorrect (thanks to Ika Wu)