Fix program and subdivison to blocks