fix convert call

See #19. I didn't test this super rigorously, but I made a few requests without problem.