fix for corrupted session variable for first activity id.