Investors & landlords

If the broker did not have a cost basis on the 1099-B then of course it would have shown a gain ... so if you enter the correct basis you may have a loss.  That is not a bad thing.  You are supposed to enter the missing information.