Retirement tax questions

We are running into the same problem now.  And yes, we entered code 4 in box 7....which is what the 1099R reflects.  Still we get the 10% penalty.  We have spoken with a couple different TT live experts, but they are also perplexed.