Fix issue with structures generating on invalid blocks.