Fixed bug with regions in variable views