Fix loadSession() undeclared variable