Fix previousNum comparison that was commented out