Retirement tax questions

Oh I get a 1099R and my distribution code for Turbo Tax is 04E. For some reason Turbo tax was adding State tax when it shouldn’t. I went in and changed the code to other saved the file then changed it back to 04E and it adjusted to tax free for Louisiana. Weird but it works