Fix bug with setting timestamp when adding relationships.