fix for empty nodes