BlockDB fix