Fix ViewGenerator