Fixed session.pop error.