fixed check against existing events