fix caclulate range in mines