fixed buffer overwrite @ pid