Fixed compile error in index view