Fixed context replacing at variables replacing