EntityDate changing on entity update

- Fixed a bug, then edited record would change it's EntityDate after
commit.