Fixed mixed up flags for files