Fix segmentation fault in 'pf' command