fixed a bug related to compound node bounds calculation for hidden nodes