fixed some minor stuff with event creation