Custom variables are queried before showing the progress bar, so now the caption of the progress bar can reflect the replaced value of the custom variables.