fix pid does not work anymore with thin