Fix code region format changing