fixed file exipration always marked the file as deleted