fixed up to angular.is(un)defined
fixes to inconsistent fields on puzzle setter