fix region comparison