fix register event delay