Fixed id mismatch bug. Close #90.