enable nuget package restore
fix bug comparing dynamic property to boolean