RPMD works correctly with a barostat