Upgrade policies to SVN version and fix a small bug.