fix title replacement