Various bug fixes for the new_event command