Fixed various client side bugs.