Fix bug in disk counter