remove invalid event