Fixed deprecated use of Actor constructor