Fixed client side issues due to threading bugs.