After you file

In fact, when I put in the information for the ammended federal tax return on heat pumps form 5695, the Kansas return got really screwed up and showed I now owed them a huge amount of taxes greater than what I spent on installing the heat pump.  I had already received the original tax rebate from Kansas. What happened here?