Fixed an undefined index error in sessions page