Fixed duplicate declaration of $name