fixed typo leading to bug