fix bug of periodic deposite