fixing type on destructive file