Fix export of pid