Fix AddActivity bug