fix title substitution