Bugfix: Consider bottom node for min/max