minor fix in CastActivity