Fixed bug in entity record dao updates.