fix: refactor getting the first block from metadata/storage