Weird problem with actor

Here is all the code of the actor class