fix arguments check in client.retrieve