Fix heading id generation