fix some bug of activity