var type fix