Fixing bug in event dispatcher. Adding missing file.