Why did adding a License Expense for my business cause my refund to decrease?

I was entering expenses for my Minnesota business and after adding a license expense, my Federal Tax refund increased however my state refund decreased. I removed the expense, and the state and federal returns returned to their amounts prior to the change. Is this a bug, or what am I missing?