fix problem with regions