Fix wrong var type.