Fixed the file mapping with bad protect mode.