New York (CNN Business) The Dow turned things around on Thursday, finishing higher for the first time in two days.

Dow INDU S&P 500 SPX Nasdaq Composite COMP Theended the day more than 100 points higher, or 0.4%. Theand theclosed up 0.4% and 0.6%, respectively.

The gains come after stocks closed in the red on Tuesday and Wednesday, ending a week-long rally even though fundamentals hadn't really changed. Investors are hoping President Donald Trump and Chinese Premier Xi Jinping will meet at the G-20 summit in Japan later this month and move forward to find a resolution to the China-US trade spat. If Xi doesn't attend, Trump said there would immediately be further tariffs on Chinese imports.

Investors are hopeful that the Fed could boost the stock market. Expectations for a Federal Reserve interest rate cut in July are now at 86%. The central bank is meeting next week, though it is not expected to cut rates at its meeting. Chairman Jerome Powell will probably deliver guidance of an impending cut. If Powell disappoints, markets could become volatile.

Meanwhile, the IPO bonanza continued. Fiverr, an online marketplace for freelancers, made its debut on the New York Stocks Exchange under the ticket "FVRR" after pricing its IPO at $21 a share. The company raised more than $110 million.