Fixing constants used to open files.