Fix activities ending