some fixes on visChi.m (untested)