Fix #38: Mongo decode of id picks up incorrect id.