Fixed a bug the in the publish chapter code