fix read pid