fixed session first time issue