corrected the bug where the blocks loose their bindings when redrawn