Whilst you're in this file, can you change line 509 so that it pushes the activity in the array rather than overwriting it?