cleanup
fix invalid event not removed from gui script