Removed useless event masks.