Fix block mode editing