fixed a bug in procexhand