fix issues with dualvar types