You have to use /lagg clear, Instead of just /lagg or the command will not work.
You could use the autocommand plugin, or create an one using madcommands by doing something like this
/cmd create autolag
/cmd add autolag sleep 30
/cmd add autolag asop /lagg clear
/cmd add autolag goto 1