fixes #120 payment protocol bad url race condition