Fix for new instance isValid always true bug.