Fixing #4 Bug when no space left on device