fixes error on going back in states/connecting.lua