fixing node attribute conditional