fixed double encoding error,
fixed options check in pwp.php