fixed missing npid in a table