one more tweak to the block labels code for added robustness