Grid View not initialized properly