Fixed file status bug