Fixed fileinfo removal errors.