form 8829 Gross Income Limitation in simplified method wrong

Hi - I am having issue i cannot seem to figure out.  On form 8829 the gross income limitation is not pulling correctly from my Schedule C.  I have 50K in 1099 revenue, 10k of expense so a profit of 40K on line 29.  But on form 8829, for the Gross Income Limit, it is only pulling in the expenses show it shows a profit of negative 10K.  I have tried deleing and reentering to no avail.  I also tried deleted schedule c and started over, I entered just the revenue, and then went to home office and selected simplified method, entered the needed info and it then allowed the deduction, showing profit of 50K, but then I entered the rest of my expenses, and the program changed profit to the same negative 10K (which is the total of non office expenses.    Using desktop Mac.  Please help.