Bug fixes for new view compiler