Fixed bug in p3p