Lune's anti lag script

Okay, here's the problem.
I'm using Lune's Anti Lag. The usual script that won't let the events off-screen be updated, if there isn't a comment line '':update:'' at the beginning of the event page.

It's working fine but the problems arise when I'm teleporting the player within the same map; doing so the 'pre-teleport' events get pasted in the new screen.

Anyone knows a better solution to this?
this is the script by the way:

http://forums.rpgmakerweb.com/index.php?/topic/9828-lune-ultimate-anti-lag/

Nevermind, found the solution

I upped the sprite updating bit to:

def near_the_screen?

    ax = $game_map.adjust_x(@character.x) - 8

    ay = $game_map.adjust_y(@character.y) - 6

    ax.between?(-20, 20) && ay.between?(-20, 20)

  end

end

Original thread: https://forums.rpgmakerweb.com/threads/lunes-anti-lag-script.54950/