Fixed error with looking for the second p instead of the error p (with wbyoung).