fixed node validation error, check type