Fixed the ifTranslate bug