Fixed error due to automatic replacement