set the modified and entity type even if null