Fixed bug where block collapsing could malfunction