Deductions & credits

I sold my home in 2016 which resulted in a gain and I believe I need to repay the remaining balance on my Homebuyer Credit.  When I choose the second bullet (Yes, but the home we received the credit for stopped being our main home on or before December 31, 2016), It removes the form 5405.  How can I get this back and repay the remaining balance on my Homebuyer credit?