Fix region decomposing.