fix fragment crash / null activity