Fix for activity indexing.