Marlins beat Cubs 4-3 after losing Alvarez