bug fix for non zero block