fix detecting repeat activity type