fix ignoring -p switch when `-p 12345`