fixed single messed up function replacement.