Fixes -p option

trivial variable fix