Fixes Activity creation.