bug fix for blocks