fix region file