replacement error fixed