Fix text replacing