fix the unsupported file bug