fixed a bug of the actor sample.