Fix room configuration after binarization