Bugfix for unpredictable behavior on empty disk