fixed a bug in sessFlash