Fixed activity bug