from==to bug fixed