Fix payment receipt couldn't be printed after first reflashing