Fixed error in pap