fixed local p

fixed #268