Fixed bug in get_process_id