fix corrupted file extension doesnt exit problem