Fixing a logic error in client code

- Now correctly choosing transaction manager