take care of varType, fixes #3