fixed small bug in getAllNumvals