Fix block cost counting (counter not reset)