Add warning when file format is not correct