Shares gain as vaccine-rally falters