fix calculation of an indicator