fix ViewData class bug