fix href number generation