New-home construction logs unexpected gain