Correctly set the block at the location.