fix the default value in a range input for buying items