I'm kind of confused by your post. Are you saying that you reduced your total income to fall into the 24% bracket and that you got a massive refund because you didn't have to pay taxes at 32% bracket?
Regardless of what bracket range we're talking about you would of course get a refund, the larger the deduction the more refund you get.