events migrations bugfix