bug fix in activity execute