fix certificates issue