fixed certificate error