Fixed old bug in "Calculate grids", introdudced temporary debugs