fixed bug in blocks