Fixed segmentation fault in obtaining block info