fixed lastmodified date when creating relations