fix bug when enabling quota and set quota