fix title to expand variables