Fixed cert errors with clone