small bug fix on activities