activity bug fix