Fix activity starting several times.