fixes Activity class