Fixed getBlockMetadata return type