Fix activity name parsing #3758