small fix for Session
small fix for GuiImageManager
Merge pull request #507 from LipuFei/small-fixes

small fix