Fixed warning on double declaration of $pid