fix bug 'no restriction for applying transactions'