fix vi bug - Thanks David
html