Fix for wrong context id being sent

The console stops working after a reload.

This fixes it, at least for the use case with one session.