Fix createCollection event dispatching