Var type fix