fix type in client