fixed setBlock calls to null