Fixing endSession event and setSessionContinueSeconds