fix Undefined variable 'p'
Merge pull request #185 from antivapor/master

fix Undefined variable 'p'