Fixed the check for the parent values.