Fixed bug where worker session was not being initialized correctly.