fixed bug in block id initialization