fixing the second level activity behaving badly