fix modvar reference