Fixed publish (priority) bug