Fixed the last bug I mentioned

Topnode/bottomnode compression properly working