Setting file element to null,instead of recreating