fix viewtest