Fixed minor typecasting bugs for OCSP