fix bug: about add invalidate func