Fix the bug #167 the visit type was not changeable.