fixed Actor.component() method
Merge pull request #850 from synopia/behavior

fixed Actor.component() method