Fix for history activity