Fixed small bug where all sectors were not erased