fixed permissions issue when quota!=0