fixed node cast exception