Fixed class binding for empty nodes