fixed bug in Model#whatsInvalid and Model#valid