bug fix: buttons cannot placed on top/on the bottom of blocks