Fixed sheet view error because of sheet variable not defined