Added default session value
Fixed error