correctly handle range properties as numbers