fix cert variable