fix meter state and type and location problemy