fixed regionlabeling