Fix BaseBlockCommand to work with block at the boundaries of the view