Stability of short wavelength tearing and twisting modes