Fix bug in client for saving and loading models introducing in previous commit.