Fix html tip display issue and an issue related to publish_event

This fix the html tip display issue reported by the client.

Master wasn't working initially, so this PR also include a fix related to tracking log.