Retirement tax questions

My Massachusetts Teacher's Retirement pension pay out is placed in line 4B when it should be on line 5B as a pension NOT an IRA distribution.  How do I fix that? It also screws up my MA taxes because MA does NOT tax teacher's pensions, but it gets carried over from the Federal as a TAXABLE IRA and gets taxed!