Fixed view build errors