fix in case we just create a new element without data