Fixed crash when placing a block on top of fences