finally fix bug with event resources