fix viewstate issue