bugfix and skipping missing blocks, when constructing bg