Fixed a little issue related to session in admin script