Added bug fixes for client networking