Fix certificate