fixed type error in block object